﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace Ankha.GUI.Components
{
    public abstract class ButtonBase : Component
    {
        //fields

        //ctor
        public ButtonBase()
        {
            this.OnEventLeftClick += delegate { OnLeftClick(); };
            this.OnEventRightClick += delegate { OnRightClick(); };
            this.OnEventMouseHover += delegate { OnHover(); };
        }

        //Methods
        protected abstract void OnLeftClick();
        protected abstract void OnRightClick();
        protected abstract void OnHover();
    }
}
